Part Number Hot Search : 
BR3501 TK15A20D TSMBJ1 PLS101A 68801 DB3J407K ICS84402 3V912A
Product Description
Full Text Search
 

To Download TN1177 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  december 2014 docid026269 rev 2 1/12 1 TN1177 technical note migrating from stm32l15/6xrc- a to stm32l15/6xrc and from stm32l15/6xvc-a to stm32l15/6xvc introduction to ease the development of stm32 microcontroller applications, it is important to be able to smoothly replace one microcontroller type with another from the same product family. the purpose of this technical note is to help the users with the migration from an existing stm32l15/6xxc-a device to an stm32l15/6xx c device (only for devices in lqfp64 and lqfp100 packages: stm32l15/6xrc-a and stm32l15/6xvc-a). this document includes the relevant information for the users. prior to migrating an application, the users need to analyze the hardware migration, the peripheral migration and the firmware migratio n. to better understand the information included in this technical note, the us ers should be familia r with the stm32l1 microcontroller family. for additional information, please refer to the stm32l100xx, stm32l151xx, stm32l152xx and stm32l162xx advanced arm ? -based 32-bit mcus reference manual rm0038 in which stm32l15/6xxc-a and stm32l15/6xxc are ?cat.3? devices, and to the stm32l15/6xxc datasheets. documents are av ailable for download from the company website at www.st.com/stm32. table 1 lists the stm32 microcontrollers concerned by this technical note. table 1. applicable products type reference products microcontrollers stm32l151rc, stm32l151vc stm32l151rc-a, stm32l151vc-a stm32l152rc, stm32l152vc stm32l152rc-a, stm32l152vc-a stm32l162rc, stm32l162vc stm32l162rc-a, stm32l162vc-a www.st.com
contents TN1177 2/12 docid026269 rev 2 contents 1 codification/package changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 hardware migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 peripheral migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1 main peripherals/system changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1.1 lcd rails decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1.2 proprietary code protection (pcrop) . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 device limitations, changes and/or updates . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2.1 removed limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2.2 newly introduced limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 development tools adaptation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5 consumption comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 6 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
docid026269 rev 2 3/12 TN1177 list of tables 3 list of tables table 1. applicable products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32l15/6xxc and stm32l15/6xxc-a codification summary . . . . . . . . . . . . . . . . . . . . . 4 table 3. stm32l15/6xxc and stm32l15/6xxc-a device differe nces. . . . . . . . . . . . . . . . . . . . . . . . 6 table 4. consumption difference summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 5. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
codification/package changes TN1177 4/12 docid026269 rev 2 1 codification/package changes table 2 presents the list of references, part numbers and packages for the stm32l15/6xxc- a and stm32l15/6xxc products. the changes and similarities in the codifi cation/packages in stm32l15/6xxc versus stm32l15/6xxc-a are the following: ? the related reference number does not end with -a, ? the packages are the same, ? the pinout is the same. table 2. stm32l15/6xxc and stm3 2l15/6xxc-a codification summary device description reference part number package up to: stm32l15/6x - 256kb flash 32kb ram stm32l151rc-a stm32l152rc-a stm32l162rc-a stm32l151vc-a stm32l152vc-a stm32l162vc-a stm32l151rct6-a stm32l152rct6-a stm32l162rct6-a stm32l151vct6-a stm32l152vct6-a stm32l162vct6-a lqfp64, lqfp100 up to: stm32l15/6x - 256kb flash 32kb ram stm32l151rc stm32l152rc stm32l162rc stm32l151vc stm32l152vc stm32l162vc stm32l151rct6 stm32l152rct6 stm32l162rct6 stm32l151vct6 stm32l152vct6 stm32l162vct6 lqfp64, lqfp100
docid026269 rev 2 5/12 TN1177 hardware migration 11 2 hardware migration the stm32l15/6xxc-a and stm32l15/6xxc devices are pin-to-pin compatible. all peripherals share the same pins. both devices are produced in the same packages. the transition from the stm32l15/6xxc-a device to the stm32l15/6xxc device is therefore very simple and devices can be r eplaced without any hardware changes on the application pcb.
peripheral migration TN1177 6/12 docid026269 rev 2 3 peripheral migration table 3. lists the main product peripherals and system features for both product sets. the common peripherals are supported with the dedicated firmware library without any modification. the users can change the in stance and all the related features (clock configuration, pin configuration, interrupt/dma request). the extended peripherals such as lcd rail decoupling and pcrop (proprietary code read out protection) are fully backward compatible with no need to firmware update. the main peripherals changes are described in section 3.1: main peripherals/system changes . the changes which are also needed in the development tools configuration are described in section 4: development tools adaptation . table 3 presents the differences between stm32l15/6xxc-a and stm32l15/6xxc devices regarding the peripherals and system differences, as well as the impact to needed software changes. the differences are highlighted in gray. table 3. stm32l15/6xxc and stm 32l15/6xxc-a device differences function stm32l15/6xxc-a stm32l15/6xxc behavior / impact to software core @ 32mhz arm ? cortex ? -m3 arm ? cortex ? -m3 no change max dmips/mhz 1.25 1.25 no change flash [kb] 256 256 no change ram [kb] 32 32 no change eeprom [kb] 8 8 no change backup registers [b] 128 128 no change flash interface [bits] 64/32 64/32 no change bootloader usart/usb usart/usb no change dma / channels 2 / 12ch 2 / 12ch no change usart 3 3 no change spi / i2s 3 / 2 3 / 2 no change i2c 2 2 no change usb 2.0 1 x fs 1 x fs no change lcd [seg x com] 8 x 40 8 x 40 no change lcd rails decoupling no yes better lcd contrast for larger displays (if used external lcd rails decoupling capacitors). if not used then no software change is required. timer [32-bit/16-bit/lite] 1/6/2 1/6/2 no change iwdg/wwdg 1/1 1/1 no change
docid026269 rev 2 7/12 TN1177 peripheral migration 11 note: for additional information, please refer to the stm32l100xx, stm32l151xx, stm32l152xx and stm32l162xx advanced arm ? -based 32-bit mcus reference manual rm0038 in which stm32l15/6xxc-a and stm32l15/6xxc are ?cat.3? devices, and to the stm32l15/6xxc datasheets. documents are av ailable for download from the company website at www.st.com/stm32. 3.1 main peripherals/system changes some system properties and peripherals configuration were changed in the stm32l15/6xxc device. in the next are desc ribed those changes. the following sections describe these changes. 3.1.1 lcd rails decoupling the external decoupli ng capability of lcd rails was im plemented to im prove the lcd contrast (for example for large lcd displays with higher segments capacity). on stm32l15/6xxc devices, specific pins can be connected to exter nal capacitors that maintain a stable lcd rail voltage while driving the lcd segments. clock hsi/hse/lsi/lse css on hse/lse hsi/hse/lsi/lse css on hse/lse no change hsi/hsi clock trimming +/- 1% +/- 1% no change rtc version rtc v2.0 rtc v2.0 no change dac 2 2 no change adc (total / fast channels) 1 (25 / 6) 1 (25 / 6) no change comparator 2 2 no change touch sensing [channels] 23 23 no change temperature sensor yes yes no change internal voltage reference yes yes no change unique id yes yes no change mco yes yes no change pcrop no yes new memory protection feature implemented: proprietary code read out protection (only its execution is allowed). if not used then no software change is needed (only added extension of existing protections). table 3. stm32l15/6xxc and stm32l15/ 6xxc-a device differences (continued) function stm32l15/6xxc-a stm32l15/6xxc behavior / impact to software
peripheral migration TN1177 8/12 docid026269 rev 2 the backward compatibility is fulf illed, there is not need of any software change. to use the new feature, the dedicated pins must be configured as inputs and the external capacitors should be connected and the lcd_capa[4:0] bits in the sysc fg_pmc register must be configured. for more details about lcd rail decoupling please refer to the stm32l100xx, stm32l152xx and stm32l162xx advanced arm ? -based 32-bit mcus reference manual rm0038 in which stm32l15/6xxc-a and stm32l15/6xxc are ?cat.3? devices, and to the stm32l15/6xxc datasheets. 3.1.2 proprietary code protection (pcrop) the read protection of a given flash area is implement in stm32l15/6xxc devices. the flash area cannot be read by any access (includi ng software), it can be only executed. it can be used as intellectual property read protec tion of proprietary third party code which can be executed on customer side. the implementation of this proprietary code read out protection (pcrop) is backward compatible. to use the pcrop feature it is necessary to correctly program the added option bytes (sprmod and wrpx option bytes). for additional information, please refer to the stm32l100xx, stm32l151xx, stm32l152xx and stm32l162xx advanced arm ? -based 32-bit mcus reference manual rm0038 in which stm32l15/6xxc-a and stm32l15/6xxc are ?cat.3? devices, and to the stm32l15/6xxc datasheets. 3.2 device limitations, ch anges and/or updates a new revision of errata sheet has been pub lished for the stm32l15/6xxc devices. several limitations that had been reported for the stm32l15/6xxc-a have been solved, while new limitations have been introduced. this se ction describes the changes in the device limitations. please refer to stm32l15/6xxc-a errata shee t and stm32l15/6xxc errata sheet for details on the device limitations. 3.2.1 removed limitations the following limitations that applied to stm32l15/6xxc-a devices do not apply to stm32l15/6xxc devices: ? missing analog switch on gpio pc10, ? pull-up on pb7 when configured in analog mode, ? injection from l cd_seg2, lcd_seg5, lcd_seg21 pins. 3.2.2 newly introduced limitations the following limitations which were not pr esent in nor stm32l15/6xxc-a devices have been introduced for stm32l15/6xxc devices: ? the operational amplifier factory trimmi ng value cannot be selected (manual initialization is required). ? data eeprom cycling is limited to 100 kcycles instead of 300 kcycles. ? adc accuracy lowered.
docid026269 rev 2 9/12 TN1177 development tools adaptation 11 4 development tools adaptation the changes in the device hardware have impacted the development tools. following the change of device identifier (dev_id) and so me peripherals changes with the addition of new features, it has been necessary to upgrade the development tools as detailed hereafter. 1. dev_id changes: in stm32l15/6xxc-a de vices, dev_id=0x436 in stm32l15/6xxc de vices, dev_id=0x427 if the software or programming tool is using dev_id[11:0] field (in dbgmcu_idcode register) then the relevant changes must be applied in the software or tool. 2. changes in the development tool configurations: a) iar - install the latest version or apply the patch provided by st support team to support the new device, and change the device type in the configuration. b) keil - install the latest version that supports the new device, change the device type in the configuration, and change the st link programming algorithm. c) others - install the latest version that supports the new device, and change the device type in the configuration. 3. stm32l1xx standard peripherals library update: stm32l15/6xxc devices are supported in t he latest version of stm32l1xx standard peripherals library. make sure to use t he latest version of stm32l1xx standard peripherals library to use the new peripheral features. a) define the macro stm32l1xx_mdp and use it in the project startup_stm32l1xx_mdp.s file. b) rebuild the existing project with t he new library so it can be run on stm32l15/6xxc devices. 4. programming tools adaptation: in the programming tool configurations (for example st link with the related software) the device type must be changed to co rrectly program the new stm32l15/6xxc devices. use the latest st vis ual programmer (stvp) or the la test st-link utility which support the new devices (both are available at www.st.com/stm32).
consumption comparison TN1177 10/12 docid026269 rev 2 5 consumption comparison the stm32l15/6xxc devices feature less dy namic consumption than the stm32l15/6xxc- a devices, due to the advanced manufacturing technology. the power consumptions in low- power modes are on similar levels. table 4 shows the differences in power consumption between the devices in the various operating modes. table 4. consumption difference summary parameters (all at v dd =3v) stm32l15/6xxc-a stm32l15/6xxc full speed from flash (32 mhz in hsi) 325 a/mhz 257 a/mhz msi clock from flash (4.2 mhz) 230 a/mhz 185 a/mhz low-power run from ram @ 32 khz 12.5 a 11.0 a low-power sleep from ram @ 32 khz 6.1 a 5.5 a stop mode 476 na 435 na stop mode with rtc on lsi 1.35 a 1.40 a standby mode 305 na 289 na standby mode with rtc on lsi 1.16 a 1.17 a
docid026269 rev 2 11/12 TN1177 revision history 11 6 revision history table 5. document revision history date revision changes 07-may-2014 1 initial release. 17-dec-2014 2 updated table 3: stm32l15/6xxc and stm32l15/6xxc-a device differences exchanging the second and third column titles.
TN1177 12/12 docid026269 rev 2 important notice ? please read carefully stmicroelectronics nv and its subsidiaries (?st?) reserve the right to make changes, corrections, enhancements, modifications, and improvements to st products and/or to this document at any time without notice. purchasers should obtain the latest relevant in formation on st products before placing orders. st products are sold pursuant to st?s terms and conditions of sale in place at the time of o rder acknowledgement. purchasers are solely responsible for the choice, selection, and use of st products and st assumes no liability for application assistance or the design of purchasers? products. no license, express or implied, to any intellectual property right is granted by st herein. resale of st products with provisions different from the information set forth herein shall void any warranty granted by st for such product. st and the st logo are trademarks of st. all other product or service names are the property of their respective owners. information in this document supersedes and replaces information previously supplied in any prior versions of this document. ? 2014 stmicroelectronics ? all rights reserved


▲Up To Search▲   

 
Price & Availability of TN1177

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X